package com.qf.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.common.core.entity.User;
import com.qf.user.mapper.UserMapper;
import com.qf.user.param.LoginParam;
import com.qf.user.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @author zdl
 * @date 2025/4/7
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public String login(LoginParam loginParam) {
        User user = userMapper.selectOne(new LambdaQueryWrapper<>(User.class)
                .eq(User::getUsername, loginParam.getUsername()));
        String s = UUID.randomUUID().toString();
        return s;
    }
}
